package com.healthcloud.dao;


import com.healthcloud.entity.IntegralDetail;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangjie
 */
public interface IntegralDetailMapper  extends CRUDMapper<IntegralDetail, Integer> {

    List<IntegralDetail> queryBySnToday(@Param("sn") String sn);
    List<IntegralDetail> queryBySnAndTestTime(@Param("sn") String sn, @Param("testTime") String  testTime);

    List<IntegralDetail> listByMasterId(@Param("masterId") Integer masterId, @Param("pageParam") PageParam pageParam);

    Integer countByMasterId(@Param("masterId") Integer masterId);
}
